﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PocketPatients
{
    public partial class PersonalDataPanel : SmartControls.RollupPanel
    {
        public PersonalDataPanel()
        {
            InitializeComponent();
#if (!DESIGN)

            DataBind();
#endif
        }

        //[System.Diagnostics.Conditional("DESIGN")]
        private void DataBind()
        {
            #if (!DESIGN)
            this.label2.DataBindings.Add("Text", SharedData.Patients, "FullName", false, DataSourceUpdateMode.Never);
            this.pictureBox1.DataBindings.Add("Image", SharedData.Patients, "Photograph", false, DataSourceUpdateMode.Never);
            #endif
        }

        
    }
}
